import {View} from "@tarojs/components";

export default function Item(props){
  const { item } = props
  return (
    <View
      className={`item ${item.active ? 'active' : ''}`}
      onClick={() => props.upDataList(item)}
    >
      <View className='name'>{item.name}</View>
      <View className='info'>
        <View className='radius'>2</View>
        <View className='texts'>青2.1</View>
      </View>
    </View>
  )
}
